'use strict';

function compute_average(collection) {

  let sum=collection.reduce(function(a,b){
    return a+b
  });
  let average=sum/collection.length;
  return average;
  
}

module.exports = compute_average;

